<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>
<c:if test="${empty statYear or statYear==''}">
	<c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
</c:if>
<div class="t_bar">
	<span class="color_red">*</span>${statYear-1}年电子商务交易情况（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="tblTransactions">
<thead >
	<tr >
	   <th class="TblHead" align="center"  width="5%">选择</th>
		<th class="TblHead" align="center"  width="5%">序号</th>
		<th class="TblHead" align="center" width="25%" >第三方电子商务<br/>交易平台名称</th>
		<th class="TblHead" align="center" width="20%">平台注册地址<br/>（XX省XX市）</th>
		<th class="TblHead" align="center" width="18%">年服务使用费</th>
		<th class="TblHead" align="center" width="17%" >年在线销售额</th>
		<th class="TblHead" align="center" width="10%" >备注</th>
	</tr>
	</thead>

			<tbody id="tab">
					<tr style="display:none" align="center">
						<td align="center">&nbsp;<input type="radio" class="radiobutton" name="selTransactions" ></td>
						<td align="center">&nbsp;<span name="transactions|transaction[0]@seq_no" >[index]</span></td>
						<td align="center"><input type="text" name="transactions|transaction[0]|name" label="第三方电子商务交易平台名称" class=" required input_text " maxlength="100" style="width:80%"/></td>
						<td align="center"><input type="text" name="transactions|transaction[0]|address" label="平台注册地址" class=" required input_text " maxlength="100" style="width:80%"/></td>
						<td align="center"><input type="text" name="transactions|transaction[0]|invest" label="年服务使用费" onchange="countTable('tblTransactions','total_1',4);" class=" required input_text " style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,9,4,2)"/></td>
						<td align="center"><input type="text" name="transactions|transaction[0]|sales" label="年在线销售额" class=" required input_text " onchange="countTable('tblTransactions','total_2',5);" style="text-align: right;width:80%" onfocus="InitInput.setNumber(this,9,4,2)"/></td> 
						<td align="center"><input type="text" name="transactions|transaction[0]|remark" label="备注" class=" required input_text " maxlength="100" style="width:80%"/></td>
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/transactions/transaction" var="transaction">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						<td align="center">&nbsp;<input type="radio" class="radiobutton" name="selTransactions" ></td>
						<td align="center">&nbsp;<span name="transactions/transaction[${flag}${index}]@seq_no" ><x:out select="$transaction/@seq_no"/></span></td>
						<td><input type="text" name="transactions/transaction[${flag}${index}]/name"  label="第三方电子商务交易平台名称" style="width:80%"   class=" input_text required" value="<x:out select="$transaction/name" />" maxlength="100"/></td>
					    <td><input type="text" name="transactions/transaction[${flag}${index}]/address"  label="平台注册地址" style="width:80%"   class=" input_text required" value="<x:out select="$transaction/address" />" maxlength="100"/></td>
					    <td><input type="text" name="transactions/transaction[${flag}${index}]/invest"  label="年服务使用费" style="text-align: right;width:80%" onchange="countTable('tblTransactions','total_1',4);" onfocus="InitInput.setNumber(this,9,4,2)"   class=" input_text required" value="<x:out select="$transaction/invest" />"/></td>
					    <td><input type="text" name="transactions/transaction[${flag}${index}]/sales"  label="年在线销售额" style="text-align: right;width:80%" onchange="countTable('tblTransactions','total_2',5);" onfocus="InitInput.setNumber(this,9,4,2)"   class=" input_text required" value="<x:out select="$transaction/sales" />"/></td>
					    <td><input type="text" name="transactions/transaction[${flag}${index}]/remark"  label="备注" style="width:80%"   class=" input_text required" value="<x:out select="$transaction/remark" />" maxlength="100"/></td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<table   cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
					<tr align="center">
					<td colspan="4" width="55%">合计</td>
					<td width="18%"><input name="invests/total_1" id="total_1" value="<x:out select="$xmlData/data/invests/total_1" />" class="gray input_text"  disabled style="text-align:right;width:80%;" lable="年服务使用费" onfocus="InitInput.setNumber(this,7,4,2)" /></td>
                    <td width="17%"><input name="invests/total_2" id="total_2" value="<x:out select="$xmlData/data/invests/total_2" />" class="gray input_text"  disabled style="text-align:right;width:80%;" lable="年在线销售额" onfocus="InitInput.setNumber(this,7,4,2)" /></td>
					<td width="10%"><input name="invests/remark"  value="<x:out select="$xmlData/data/invests/remark" />" class="input_text required"    style="width:80%;" lable="备注" maxlength="50"/></td>
                   </tr>
                    </table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblTransactions',20,'${year-1}年电子商务交易情况最多只能填写20条')){addNewRow('tblTransactions');showDateTag('tblTransactions');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblTransactions','selTransactions')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblTransactions','selTransactions')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblTransactions','${year-1}年电子商务交易情况');countTable('tblTransactions','total_1',4);countTable('tblTransactions','total_2',5);">
					</td></tr>
	</table>	
 <p>说明：按照实际交易情况填报，须同时报送电子商务平台出具的交易证明材料；</p>


<script type="text/javascript">


</script>
